<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		function say(){
			alert("hello-say---");
		}
		function Student(name,age,gender){
			this.name=name;
			this.age=age;
			this.gender=gender;
			this.say=say;
			/*this.say=function(){
				alert();
			}*/
		}

		var stu1=new Student("lisi",20,'men');
		var stu2=new Student("tom",20,'men');

		// stu1.say();
		// stu2.say();
		// console.log(stu1.say==stu2.say);

		// /*console.log(stu1);
		console.log(stu2);
		console.log(stu1.constructor);
		console.log(stu2.constructor);
		//console.log(stu1==stu2);



	</script>
</head>
<body>
	
</body>
</html>





